<?php
namespace Admin\Models\hrm;

use Admin\Models\BaseModel;

class XhhrmStaffRegular extends BaseModel
{

    /**
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $iSPId;

    /**
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iStaffId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $mDesc;

    /**
     * @var string
     * @Column(type="string",nullable=true)
     */
    public $sProbationSalary;

    /**
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $sRegularSalary;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $sProbationDate;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tRegularDate;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $sContentDate;

    /**
     * @var integer
     * @Column(type="integer", nullable=true)
     */
    public $iState;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bDelete;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $iLastModifyUserId;

    public $mHistory;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
//        $this->setSource("XHHrm_StaffContact");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHHrm_StaffRegular';
    }


    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhhrmStaffRegular[]|XhhrmStaffRegular
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhhrmStaffRegular
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

   
}
